import 'package:distribution_mall_flutter/generated/json/base/json_field.dart';
import 'package:distribution_mall_flutter/generated/json/merchant_authentication_state.g.dart';
import 'package:distribution_mall_flutter/pages/merchant_authentication/domain/merchant_auth_last_entity.dart';
import 'package:flutter/material.dart';
export 'package:distribution_mall_flutter/generated/json/merchant_authentication_state.g.dart';

@JsonSerializable()
class MerchantAuthenticationState {
  MerchantAuthLastBody? merchantAuthLastBody;
  bool loadSuccess = false;
  @JSONField(serialize: false,deserialize: false)
  TextEditingController businessNameController = TextEditingController();
  @JSONField(serialize: false,deserialize: false)
  TextEditingController phoneNumberController = TextEditingController();
  @JSONField(serialize: false,deserialize: false)
  TextEditingController certificateNoController = TextEditingController();
  @JSONField(serialize: false,deserialize: false)
  TextEditingController addressController = TextEditingController();
  @JSONField(serialize: false,deserialize: false)
  TextEditingController addressDetailController = TextEditingController();

  MerchantAuthenticationState();

  factory MerchantAuthenticationState.fromJson(Map<String, dynamic> json) =>
      $MerchantAuthenticationStateFromJson(json);

  Map<String, dynamic> toJson() => $MerchantAuthenticationStateToJson(this);
}
